package com.ruoyi.web.controller.mdm;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.mdm.domain.SkuInfoEntity;
import com.ruoyi.mdm.service.ISkuInfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

/**
 * sku主档Controller
 *
 * @author shiseido
 * @date 2025-03-01
 */
@RestController
@RequestMapping("/mdm/skuInfo")
public class SkuInfoController extends BaseController {
    @Autowired
    private ISkuInfoService skuInfoService;

    /**
     * 查询sku主档列表
     */
    @ApiOperation("查询sku管理列表")
    @PreAuthorize("@ss.hasPermi('mdm:skuInfo:list')")
    @GetMapping("/list")
    public Object list(SkuInfoEntity skuInfoEntity) {
        return skuInfoService.searchSkuInfo(skuInfoEntity);
    }

}
